package day07;

import java.util.Scanner;

public class OverloadDemo {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int b =(int) (Math.random()*1000+1);
        System.out.println(b);//作弊
        while (true){
            System.out.println("猜吧");
            int guess = scan.nextInt();
            if (guess>b){
                System.out.println("猜大了");
            }else if (guess<b){
                System.out.println("猜大了");

            }else {
                System.out.println("恭喜你猜对了");
            }break;

        }
    }
//        show();
//        show("liuhuoqi");
//        show(25);
//        show("liuhuoqi",21);
//        show(21,"liuhuoqi");
//    }
//    public static void show(){}
//    public static void show(String name){
//        System.out.println();
//    }
//    public static void show(int age){}
//    public static void show(String name,int age){}
//    public static void show(int age,String name){}

    //public static int show(){return 1;}编译错误，重载与返回值类无关
    //public static void show(String address){}编译错误，重载与参数无关
}
